package com.example.chinese;

import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public class Star_10 extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity10);
        Button bt25=(Button)findViewById(R.id.bt25);
        bt25.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent25=new Intent();
                intent25.setClass(Star_10.this,MainActivity.class);
                startActivity(intent25);
            }
        });

        SharedPreferences spread=getSharedPreferences("data",MODE_PRIVATE);
        String spTmp1=spread.getString("name1","");
        Toast.makeText(Star_10.this,spTmp1,Toast.LENGTH_LONG).show();
        String spTmp2=spread.getString("name2","");
        Toast.makeText(Star_10.this,spTmp2,Toast.LENGTH_LONG).show();
        String spTmp3=spread.getString("name3","");
        Toast.makeText(Star_10.this,spTmp3,Toast.LENGTH_LONG).show();
        String spTmp4=spread.getString("name4","");
        Toast.makeText(Star_10.this,spTmp4,Toast.LENGTH_LONG).show();
        String spTmp5=spread.getString("name5","");
        Toast.makeText(Star_10.this,spTmp5,Toast.LENGTH_LONG).show();
        String spTmp6=spread.getString("name6","");
        Toast.makeText(Star_10.this,spTmp6,Toast.LENGTH_LONG).show();
        String spTmp7=spread.getString("name7","");
        Toast.makeText(Star_10.this,spTmp7,Toast.LENGTH_LONG).show();
        String spTmp8=spread.getString("name8","");
        Toast.makeText(Star_10.this,spTmp8,Toast.LENGTH_LONG).show();
        String spTmp9=spread.getString("name9","");
        Toast.makeText(Star_10.this,spTmp9,Toast.LENGTH_LONG).show();
        String spTmp10=spread.getString("name10","");
        Toast.makeText(Star_10.this,spTmp10,Toast.LENGTH_LONG).show();
    }
}
